<?php foreach ($data as $item):?>
<li class="mui-table-view-cell">
    <div class="mui-table">
        <div class="mui-table-cell mui-col-xs-8">
            <h5>单价：<font color="red">￥<?php echo Yii::$app->formatter->asDecimal($item["brush_price"]); ?></font>，剩余：<?php echo \common\components\MTools::IntFormat($item["number"] - $item["taskcount"]); ?></h5>
            <p class="mui-h6 mui-ellipsis"><?php echo $item["title"];?></p>
        </div>
        <div class="mui-table-cell mui-col-xs-4 mui-text-right">
            <span class="mui-h5"><button type="button" class="mui-btn mui-btn-danger" data-loading-text="提交中" url="<?php echo \yii\helpers\Url::toRoute(["task/validatetask","taskid"=>$item["id"],"tasknum"=> \common\components\MTools::IntFormat($item["number"] - $item["taskcount"])]);?>">马上抢&nbsp;></button></span>
        </div>
    </div>
</li>
<?php endforeach; ?>